﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001349 RID: 4937
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeLoginActivityRewardScRsp : IMessage<TakeLoginActivityRewardScRsp>, IMessage, IEquatable<TakeLoginActivityRewardScRsp>, IDeepCloneable<TakeLoginActivityRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003E49 RID: 15945
		// (get) Token: 0x0600DD10 RID: 56592 RVA: 0x0024FE1F File Offset: 0x0024E01F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeLoginActivityRewardScRsp> Parser
		{
			get
			{
				return TakeLoginActivityRewardScRsp._parser;
			}
		}

		// Token: 0x17003E4A RID: 15946
		// (get) Token: 0x0600DD11 RID: 56593 RVA: 0x0024FE26 File Offset: 0x0024E026
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeLoginActivityRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003E4B RID: 15947
		// (get) Token: 0x0600DD12 RID: 56594 RVA: 0x0024FE38 File Offset: 0x0024E038
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeLoginActivityRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DD13 RID: 56595 RVA: 0x0024FE3F File Offset: 0x0024E03F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeLoginActivityRewardScRsp()
		{
		}

		// Token: 0x0600DD14 RID: 56596 RVA: 0x0024FE48 File Offset: 0x0024E048
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeLoginActivityRewardScRsp(TakeLoginActivityRewardScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.id_ = other.id_;
			this.takeDays_ = other.takeDays_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DD15 RID: 56597 RVA: 0x0024FEAC File Offset: 0x0024E0AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeLoginActivityRewardScRsp Clone()
		{
			return new TakeLoginActivityRewardScRsp(this);
		}

		// Token: 0x17003E4C RID: 15948
		// (get) Token: 0x0600DD16 RID: 56598 RVA: 0x0024FEB4 File Offset: 0x0024E0B4
		// (set) Token: 0x0600DD17 RID: 56599 RVA: 0x0024FEBC File Offset: 0x0024E0BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003E4D RID: 15949
		// (get) Token: 0x0600DD18 RID: 56600 RVA: 0x0024FEC5 File Offset: 0x0024E0C5
		// (set) Token: 0x0600DD19 RID: 56601 RVA: 0x0024FECD File Offset: 0x0024E0CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003E4E RID: 15950
		// (get) Token: 0x0600DD1A RID: 56602 RVA: 0x0024FED6 File Offset: 0x0024E0D6
		// (set) Token: 0x0600DD1B RID: 56603 RVA: 0x0024FEDE File Offset: 0x0024E0DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x17003E4F RID: 15951
		// (get) Token: 0x0600DD1C RID: 56604 RVA: 0x0024FEE7 File Offset: 0x0024E0E7
		// (set) Token: 0x0600DD1D RID: 56605 RVA: 0x0024FEEF File Offset: 0x0024E0EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TakeDays
		{
			get
			{
				return this.takeDays_;
			}
			set
			{
				this.takeDays_ = value;
			}
		}

		// Token: 0x0600DD1E RID: 56606 RVA: 0x0024FEF8 File Offset: 0x0024E0F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeLoginActivityRewardScRsp);
		}

		// Token: 0x0600DD1F RID: 56607 RVA: 0x0024FF08 File Offset: 0x0024E108
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeLoginActivityRewardScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Reward, other.Reward) && this.Id == other.Id && this.TakeDays == other.TakeDays && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DD20 RID: 56608 RVA: 0x0024FF78 File Offset: 0x0024E178
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.TakeDays != 0U)
			{
				num ^= this.TakeDays.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DD21 RID: 56609 RVA: 0x0024FFFF File Offset: 0x0024E1FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DD22 RID: 56610 RVA: 0x00250007 File Offset: 0x0024E207
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DD23 RID: 56611 RVA: 0x00250010 File Offset: 0x0024E210
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Id != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Id);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.Reward);
			}
			if (this.TakeDays != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.TakeDays);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DD24 RID: 56612 RVA: 0x002500A0 File Offset: 0x0024E2A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.TakeDays != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TakeDays);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DD25 RID: 56613 RVA: 0x00250128 File Offset: 0x0024E328
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeLoginActivityRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.TakeDays != 0U)
			{
				this.TakeDays = other.TakeDays;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DD26 RID: 56614 RVA: 0x002501B8 File Offset: 0x0024E3B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DD27 RID: 56615 RVA: 0x002501C4 File Offset: 0x0024E3C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 16U)
				{
					if (num == 8U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 16U)
					{
						this.Id = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 34U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 112U)
					{
						this.TakeDays = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040057BA RID: 22458
		private static readonly MessageParser<TakeLoginActivityRewardScRsp> _parser = new MessageParser<TakeLoginActivityRewardScRsp>(() => new TakeLoginActivityRewardScRsp());

		// Token: 0x040057BB RID: 22459
		private UnknownFieldSet _unknownFields;

		// Token: 0x040057BC RID: 22460
		public const int RetcodeFieldNumber = 1;

		// Token: 0x040057BD RID: 22461
		private uint retcode_;

		// Token: 0x040057BE RID: 22462
		public const int RewardFieldNumber = 4;

		// Token: 0x040057BF RID: 22463
		private ItemList reward_;

		// Token: 0x040057C0 RID: 22464
		public const int IdFieldNumber = 2;

		// Token: 0x040057C1 RID: 22465
		private uint id_;

		// Token: 0x040057C2 RID: 22466
		public const int TakeDaysFieldNumber = 14;

		// Token: 0x040057C3 RID: 22467
		private uint takeDays_;
	}
}
